// NotFoundPage.js
import strHtml from "./NotFoundPage.html"; // 使用 raw-loader 加载 HTML 文件
import { DomUtils } from "../../utils/DomUtils"; // 引入 DomUtils 类

export class NotFoundPage {
  constructor() {
    // 初始化样式
    const classesToAdd = [
      "bg-gradient-to-r",
      "from-blue-500",
      "to-indigo-500",
      "min-h-screen",
      "flex",
      "flex-col",
      "items-center",
      "justify-center",
      "text-white",
    ];
    document.body.classList.add(...classesToAdd);
  }
  render() {
    // 在 HTML 模板中替换占位符
    return DomUtils.convertToDom(strHtml);
  }
}
